package com.example.mybasedemo.app;

import android.os.Bundle;

import com.bigkoo.svprogresshud.SVProgressHUD;
import com.example.mybasedemo.Framewrok.base.BaseActivity;
import com.example.mybasedemo.Framewrok.base.BaseView;
import com.example.mybasedemo.R;
import com.example.mybasedemo.app.model.logic.MainModelLogic;
import com.example.mybasedemo.app.model.logic.TopLineListModel;
import com.example.mybasedemo.app.presenter.MianContract;
import com.example.mybasedemo.app.presenter.MianPresenterImp;

import java.util.List;

public class MainActivity extends BaseActivity<MainModelLogic,MianPresenterImp> implements MianContract.View{
    SVProgressHUD svProgressHUD;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    protected void onInitView(Bundle bundle) {
        svProgressHUD = new SVProgressHUD(this);
        mPresenter.getPresenterVideoCatelist("1","89f9c890a0ef45d6bc3489b6428f3477");
    }

    @Override
    protected void onEvent() {

    }

    @Override
    protected BaseView getView() {
        return this;
    }


    @Override
    public void showErrorWithStatus(String msg) {
        svProgressHUD.showErrorWithStatus("网络错误,请重试!");
    }

    @Override
    public void getViewVideoAllCate(List<TopLineListModel> cateLists) {

    }
}
